/*
* 充值费券
*
* */
$(function () {
    $("#form").submit(function () {
        var url = config.baseUrl;
        var param = {
            regId: config.getUserId(),
            phoneNum: $("#phoneNum").val(),
            password: $("#password").val(),
            IDNumber: $("#IDNumber").val(),
            name: $("#name").val(),
            type: "1",
            accountType: "",
            amount: "10"
        }
        $.ajax({
            type: "post",
            url: url + "user/refRegister.json",
            data: param,
            dataType: "json",
            success: function (data) {
                console.log(data)
                if (data.status == '200') {
                    location.href = "index.html"
                } else {
                    alert(data.msg);
                }
            }
        })
        return false;
    });
});


